import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Explosion here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Explosion extends Animation
{
    /**
     * Act - do whatever the Explosion wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    private static final GreenfootImage[] i = {new GreenfootImage("exp_1.png"),new GreenfootImage("exp_2.png"),new GreenfootImage("exp_3.png"),new GreenfootImage("exp_4.png"),new GreenfootImage("exp_3.png"),};
    boolean init = false;
    public Explosion(){
        super(i, .75);
    }
    

    public void act(){
        if(!init){
            setCoords(getX()-Play.getTrueX(), getY()-Play.getTrueY());
            init = true;
        }
     removeTouching(HullPiece16.class);
    removeTouching(Bomb.class);
    super.act();
   
    //removeTouching();
    //removeTouching();
    }
}
